package com.lee9213.conference.track.management.constant;

import java.time.format.DateTimeFormatter;
import java.util.Locale;
import java.util.stream.IntStream;

/**
 * 常量
 *
 * @author lee9213@163.com
 * @version 1.0
 * @date 2018-07-11 11:35
 */
public final class Constant {

    public static final String FILE_NAME = "input.txt";

    public static final String MORNING_START_TIME = "09:00";
    public static final int MORNING_DURATION = 180;

    public static final String LUNCH_START_TIME = "12:00";
    public static final String LUNCH_TALK_TITLE = "Lunch";
    public static final int LUNCH_DURATION = 60;

    public static final int AFTERNOON_MIN_DURATION = 180;
    public static final int AFTERNOON_MAX_DURATION = 240;

    public static final String NETWORKING_TALK_TITLE = "Networking Event";
    public static final String NETWORKING_MIN_START_TIME = "16:00";
    public static final String NETWORKING_MAX_START_TIME = "17:00";

    public static final int MAX_DURATION = IntStream.of(MORNING_DURATION, AFTERNOON_MAX_DURATION).max().getAsInt();
    public static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern("hh:mm a", Locale.ENGLISH);
}
